org.eclipse.vtp.desktop.projects.core
Class DesktopCorePlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.vtp.desktop.projects.core.DesktopCorePlugin
All Implemented Interfaces:
java.util.EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener

public class DesktopCorePlugin
extends org.eclipse.core.runtime.Plugin
implements org.osgi.framework.BundleListener

The main plugin class to be used in the desktop.


Field Summary
static java.lang.String buildPathTemplate
           
static java.lang.String configTemplate
           
static java.lang.String fileTextTemplate
           
static java.lang.String personaPromptsTemplate
           
static java.util.HashMap projectMap
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
DesktopCorePlugin()
          The constructor.
 
Method Summary
 void bundleChanged(org.osgi.framework.BundleEvent event)
           
static IApplicationProject convertToApplication(org.eclipse.core.resources.IProject project)
           
static IApplicationFragmentProject convertToApplicationFragment(org.eclipse.core.resources.IProject project)
           
 void deferEvents(java.lang.String objectId)
           
 java.util.Map getAxisJars()
           
 org.osgi.framework.Bundle[] getBundles()
           
static DesktopCorePlugin getDefault()
          Returns the shared instance.
 java.lang.String getInstallLocation()
           
 java.util.ResourceBundle getResourceBundle()
          Returns the plugin's resource bundle,
static java.lang.String getResourceString(java.lang.String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
static void initializeApplicationFragmentStructure(org.eclipse.core.resources.IProject newProject, java.lang.String domainId, java.lang.String name)
           
static void initializeApplicationStructure(org.eclipse.core.resources.IProject newProject, java.lang.String domainId, java.lang.String name)
           
static void initializeMediaStructure(org.eclipse.core.resources.IProject mediaRoot)
           
static void initializePersonaStructure(org.eclipse.core.resources.IProject newProject, java.lang.String name, java.lang.String domainId, java.lang.String language, java.lang.String languagePackId)
           
static boolean isApplicationFragmentProject(org.eclipse.core.resources.IProject project)
           
static boolean isApplicationProject(org.eclipse.core.resources.IProject project)
           
 void postObjectEvent(ObjectEvent event)
           
 void registerObjectListener(java.lang.String objectId, ObjectListener l)
           
static void removeFromCache(IVoiceToolsDesignProject project)
           
 void resumeEvents(java.lang.String objectId)
           
 void start(org.osgi.framework.BundleContext context)
          This method is called upon plug-in activation
 void stop(org.osgi.framework.BundleContext context)
          This method is called when the plug-in is stopped
 void unregisterObjectListener(java.lang.String objectId, ObjectListener l)
           
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

configTemplate

public static java.lang.String configTemplate

buildPathTemplate

public static java.lang.String buildPathTemplate

personaPromptsTemplate

public static java.lang.String personaPromptsTemplate

fileTextTemplate

public static java.lang.String fileTextTemplate

projectMap

public static java.util.HashMap projectMap
Constructor Detail

DesktopCorePlugin

public DesktopCorePlugin()
The constructor.

Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.core.runtime.Plugin
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.core.runtime.Plugin
Throws:
java.lang.Exception

getDefault

public static DesktopCorePlugin getDefault()
Returns the shared instance.


getResourceString

public static java.lang.String getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.


getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Returns the plugin's resource bundle,


initializeApplicationStructure

public static void initializeApplicationStructure(org.eclipse.core.resources.IProject newProject,
                                                  java.lang.String domainId,
                                                  java.lang.String name)
                                           throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

initializeApplicationFragmentStructure

public static void initializeApplicationFragmentStructure(org.eclipse.core.resources.IProject newProject,
                                                          java.lang.String domainId,
                                                          java.lang.String name)
                                                   throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

initializeMediaStructure

public static void initializeMediaStructure(org.eclipse.core.resources.IProject mediaRoot)
                                     throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

initializePersonaStructure

public static void initializePersonaStructure(org.eclipse.core.resources.IProject newProject,
                                              java.lang.String name,
                                              java.lang.String domainId,
                                              java.lang.String language,
                                              java.lang.String languagePackId)
                                       throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

convertToApplication

public static IApplicationProject convertToApplication(org.eclipse.core.resources.IProject project)
                                                throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

removeFromCache

public static void removeFromCache(IVoiceToolsDesignProject project)

convertToApplicationFragment

public static IApplicationFragmentProject convertToApplicationFragment(org.eclipse.core.resources.IProject project)
                                                                throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

getAxisJars

public java.util.Map getAxisJars()

registerObjectListener

public void registerObjectListener(java.lang.String objectId,
                                   ObjectListener l)

unregisterObjectListener

public void unregisterObjectListener(java.lang.String objectId,
                                     ObjectListener l)

postObjectEvent

public void postObjectEvent(ObjectEvent event)

deferEvents

public void deferEvents(java.lang.String objectId)

resumeEvents

public void resumeEvents(java.lang.String objectId)

isApplicationProject

public static boolean isApplicationProject(org.eclipse.core.resources.IProject project)

isApplicationFragmentProject

public static boolean isApplicationFragmentProject(org.eclipse.core.resources.IProject project)

bundleChanged

public void bundleChanged(org.osgi.framework.BundleEvent event)
Specified by:
bundleChanged in interface org.osgi.framework.BundleListener

getBundles

public org.osgi.framework.Bundle[] getBundles()

getInstallLocation

public java.lang.String getInstallLocation()